<?
require("selectMember.form.class.php");
require("templates/templateInput.php");
?>
<script language="JavaScript">
	$(function(){
		var member_name = $('input[name="member_name"]').val();
		$('input[name="member_name"]')
		.change( function() {
			$('input[name="member_name"]').val(member_name);
		})
		.autocomplete({
			source: function( request, response ) {
				$.getJSON( "ajaxLoadPage.php?class=selectMember&function=formAjax&display=AutoMember", {
					term: request.term
				}, response );
			},
			minLength: 2,
			delay: 500,
			select: function( event, ui ) {
				researcher_name = ui.item.value;
				this.value = ui.item.value;
				$('input[name="member_id"]').val(ui.item.id);
				//$('input[name="researcher_name"]').val(ui.item.value);
			}
		});
		
	});

</script>
<style>
	
</style>